const HTMLWebpackPlugin = require('html-webpack-plugin');
const path = require('path');

module.exports = {
  mode: 'none',
  stats: 'none',
  devtool: 'source-map',
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/, // 排除该目录下的所有代码
        loader: 'babel-loader',
      },
    ],
  },
  plugins: [new HTMLWebpackPlugin()],
  resolve: {
    alias: {
      components: path.resolve(__dirname, './components'),
      static: path.resolve(__dirname, './static'),
    },
  },
};
